
set(CMAKE_INCLUDE_CURRENT_DIR ON)

message( ${CMAKE_CURRENT_SOURCE_DIR} )

add_definitions("-Wall -g")

#aux_source_directory(src)
#include_directories(${GLFW_INCLUDE_DIR})
aux_source_directory( src SOURCE_FILES)

set(LIB_TYPE SHARED)
set(LIB_TYPE STATIC)

set(HEADER_FILES "")
#add_library(<name> [STATIC | SHARED | MODULE]
#            [EXCLUDE_FROM_ALL]
#            source1 [source2 ...])
add_library(svncpp ${LIB_TYPE} ${SOURCE_FILES} ${HEADER_FILES})

#g++ test_svn.cpp -I/usr/include/subversion-1/ -I/usr/include/apr-1.0/  -L/usr/local/lib -lsvncpp
#??
#target_link_libraries(kiui ${GLFW_LIBRARIES})
#target_link_libraries(kiui ${OPENGL_LIBRARIES})

target_include_directories(svncpp PUBLIC
        "/usr/include/wx-3.0/"
        "/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0/"
        "/usr/include/apr-1.0/"
        "/usr/include/subversion-1/"
        )

target_link_libraries( svncpp "pthread" "sqlite3"
        "wx_baseu_xml-3.0"
        "wx_gtk3u_core-3.0"
        "wx_gtk3u_adv-3.0"
        "wx_baseu_net-3.0" "wx_baseu-3.0" )
#引用外部
#include_directories(${OPENGL_INCLUDE_DIR})
include_directories(include)
#include()